﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Hellquest
{
    static class Geometry
    {
        public static bool IsTriangleCCW(Vector2 A, Vector2 B, Vector2 C)
        {
            return ((A.X - C.X) * (B.Y - C.Y) - (B.X - C.X) * (A.Y - C.Y)) > 0 ? true : false;
        }
    }
}
